
export const column = [
  {
    prop: 'name',
    label: '物资名称'
  },
  {
    prop: 'category',
    label: '物资类别'
  },
  {
    prop: 'count',
    label: '数量'
  },
  {
    prop: 'uname',
    label: '操作人'
  },
  {
    prop: 'created',
    label: '时间'
  },
  {
    prop: 'action',
    label: '操作'
  }
]

export const statusList = [
  { id: '1', name: '借出', type: 'primary' },
  { id: '2', name: '归还', type: 'primary' },
  { id: '3', name: '领用', type: 'primary' }
]

export const clientColumn = [
  {
    prop: 'name',
    label: '物资名称'
  },
  {
    prop: 'allCount',
    label: '总数量'
  },
  {
    prop: 'stockCount',
    label: '可用数量'
  }
]

export const seachConfigClient = (categoryList) => {
  return [
    {
      label: '物资分类',
      key: 'cid',
      type: 'select',
      fieldProps: {
        options: categoryList,
        props: { value: 'id', label: 'name' }
      }
    }
  ]
}
